from xgolib import XGO #导入xgolib 
#实例化dog
dog = XGO(port='/dev/ttyAMA0',version="xgolite")
import time
dog.leg(2,[0,18,95])#2号足端，向左移动18mm
time.sleep(1)#x,z坐标保持初始的0，,95不变化
dog.leg(2,[0,-18,95])#2号足端，向右移动-18mm
time.sleep(1)
dog.reset()#恢复初始状态